﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Shop.Core.Domain.Customers
{
    [Serializable]
    public class CustomerRule : BaseEntity<int>
    {
        /// <summary>
        /// 角色名称
        /// </summary>
        public string Name
        {
            get;
            set;
        }
        /// <summary>
        /// 是否激活
        /// </summary>
        public bool Active
        {
            get;
            set;
        }
        /// <summary>
        /// 是否已删除
        /// </summary>
        public virtual bool IsDeleted
        {
            get;
            set;
        }

        IList<Permission> permissions = null;
        /// <summary>
        /// 权限集合
        /// </summary>
        public virtual IList<Permission> Permissions
        {
            get
            {
                if (this.permissions == null)
                {
                    this.permissions =new List<Permission>();
                }
                return this.permissions;
            }
            set
            {
                this.permissions = value;
            }
        }
    }
}
